﻿
#ifndef NETSOCKETCOMM_H
#define NETSOCKETCOMM_H
#include <memory>
#include <string>

#define lcout (std::cout) << "["<<__FUNCTION__<< ":"<<__LINE__ << "]" 

class cmdWorker{
public:
    explicit cmdWorker(){}
    virtual ~cmdWorker(){}

public:
    virtual int protocalParse(int fd,const char*,int ,std::string&) {return 0;}
    virtual std::string protocalSerial(const char* data,int length ) { return std::string(data, length); }
};

#endif
